<?php
session_start();
if(!isset($_SESSION['email'])){
	header('location: home.php');
	exit;
}
?>
<html>
<head>

<link type="text/css" rel="stylesheet" href="css/bootstrap.css"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Booking lomba</title>

<link rel="stylesheet" type="text/css" href="demo.css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="script.js"></script>
<script type="text/javascript" src="js/bootstrap-dropdown.js"></script>
<link rel="stylesheet" href="css/nivo-slider.css" media="screen">
<link rel="stylesheet" href="css/futurico-theme.css" media="screen">
</head>
<meta name="robots" content="noindex,follow" />

<body>
<div class="hero row">
		<div class="hero-container">
		<div class="action pull-right"><img src="img/logo.png" width="350" height="250"></img>
			</div>
			<div class="span6">
				<h2>Website Pemancingan Terintegrasi</h2>
				<h6>"Trust us to be your fishing partner"</h6>
			</div>
		</div>
	</div>


<div id="content">
	<div class="wrapper">

		<div id="main">
			<div class="mode">
				 <div class="bs-docs-example">
					<ul class="nav nav-pills">
						<li class="active">
							<a href="homepage.html">Home</a>
						</li>
						<li><a href="profile.html">Profile</a></li>
						<li class="Dropdown">
						<a class="Dropdown" id="drop1" role="button" data-toggle="dropdown" href="#">Event 
						<b class="caret"></b></a>
						<ul id="menu1" class="dropdown-menu" role="menu" aria-labelledby="drop4">
						<li><a tabindex="-1" href="lomba.php">Perlombaan</a></li>
						<li><a tabindex="-1" href="#">Berita</a></li>
						<li><a tabindex="-1" href="#">Tips and Trik</a></li>
						</ul>
              </li>
						<li><a href="wp.php">Wisata Pancing</a></li>
						<li><a href="w.html">About I-Fishing</a></li>
					</ul>

				</div>
				
			</div>
			<hr class="bs-docs-separator">
<!--<div class="container-fluid">
<div class="row-fluid">
    <div class="span12">-->
	<?php
			include "config.php";
			?>
<form class="form-horizontal" name="formtambah" action="simpanbooklomba.php" method="post" enctype="multipart/form-data">
<?php //get the value from form update
			$nama = $_GET['JUDUL_PERLOMBAAN']; //get the no which will deleted
			//query for update data in database
			$tampil = mysql_query("SELECT * FROM perlombaan where JUDUL_PERLOMBAAN ='$nama'")or die(mysql_error());
			$perlombaan = mysql_fetch_array($tampil); ?>
<legend><strong>BOOKING LOMBA</strong></legend>
		<!--<div class="control-group">
		<label class="control-label" for="inputPilihLomba">Jenis Lomba</label>
		<div class="controls">
			<select name="inputPilihLomba" class="span3" type="text" id="inputPilihLomba" required="true">
				<option value="Babatan Pantai Pemancingan">Babatan Pantai Pemancingan</option>
				<option value="Pondok Maritim Kolam Pancing">Pondok Maritim Kolam Pancing</option>
				<option value="DELTA FISHING">DELTA FISHING</option>
				<option value="Kharisma Juanda">Kharisma Juanda</option>
				<option value="Kolam Pancing Mojopahit">Kolam Pancing Mojopahit</option>
				<option value="Rahayu Pemancingan">Rahayu Pemancingan</option>
			</select>
			</div>
			</div> -->
			<div class="control-group">
			<label class="control-label" for="inputPilihLomba">Jenis Lomba</label>
			<div class="controls">
			<input name="inputJudul" type="text" required="required" value="<?php echo $perlombaan['JUDUL_PERLOMBAAN'];?>" disabled />
			</div>
		</div>
		<div class="control-group">
			<label class="control-label" for="inputNamaKetua">Nama Ketua</label>
			<div class="controls">
			<input name="inputNamaKetua" class="span3" type="text" id="inputNamaKetua" required="true">
			</div>
		</div>				
		<div class ="control-group">
			<label class="control-label"  for="inputAlamatKetua">Alamat Ketua</label>
			<div class="controls">
			<textarea name="inputAlamatKetua" class="span9" type="text" id="inputAlamatKetua" placeholder="Tulis alamat jelas" required="true"></textarea>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label" for="inputHPKetua">Ho HP ketua</label>
			<div class="controls">
			<input name="inputHPKetua" class="span3" type="text" id="inputHPKetua" required="true">
			</div>
		</div>
		<p>optional untuk pengisian data anggota </p>
		<div class="control-group">
			<label class="control-label" for="inputNamaAnggota1">Nama Anggota 1</label>
			<div class="controls">
			<input name="inputNamaAnggota1" class="span3" type="text" id="inputNamaAnggota1">
			</div>
		</div>
		<div class ="control-group">
			<label class="control-label"  for="inputAlamatAnggota1">Alamat Anggota 1</label>
			<div class="controls">
			<textarea name="inputAlamatAnggota1" class="span9" type="text" id="inputAlamatAnggota1" placeholder="Tulis alamat jelas"></textarea>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label" for="inputHPAnggota1">Ho HP Anggota 1</label>
			<div class="controls">
			<input name="inputHPAnggota1" class="span3" type="text" id="inputHPAnggota1">
			</div>
		</div>
				<div class="control-group">
			<label class="control-label" for="inputNamaAnggota2">Nama Anggota 2</label>
			<div class="controls">
			<input name="inputNamaAnggota2" class="span3" type="text" id="inputNamaAnggota2">
			</div>
		</div>
				
		<div class ="control-group">
			<label class="control-label"  for="inputAlamatAnggota2">Alamat Anggota 2</label>
			<div class="controls">
			<textarea name="inputAlamatAnggota2" class="span9" type="text" id="inputAlamatAnggota2" placeholder="Tulis alamat jelas"></textarea>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label" for="inputHPAnggota2">Ho HP Anggota 2</label>
			<div class="controls">
			<input name="inputHPAnggota2" class="span3" type="text" id="inputHPAnggota2">
			</div>
		</div>
		<div class ="control-group">
			<label class="control-label" for="inputDate">KTP ketua</label>
			<div class="input-container">
			<input name="inputGambar" class="span3" type="file" id="inputGambar" required="true">
			</div>
		</div>
		<div class="control-group">
			<div class="controls">
			<button type="submit" class="btn btn-primary"></i>Save</button>
			<button type="button" class="btn"><a href="profil.php">Back</a></button>
			</div>
		</div>
	</form>
	</div>
		</div>
<aside>
	<ul>
	<ul>
	<br>
	<br><br>
	<div class="row-fluid">
		 <div class="span2 offset4">
			</div>
		
		<br>
		<p><img src="logo.png" width="250" height="150"
		  <BR>
		  <address>
		    <strong>Komunitas Pemancingan</strong><br>
					  Sukolilo <br>
					  Surabaya, 60111<br>
					  <abbr title="Phone">P:</abbr> (031) 5994251
		  </address>
					 
					<address>
					<strong>apa</strong><br>
					  <a href="mailto:#">i-fishing@gmail.com</a>
					</address>
		</br>
			
	</ul>
	</ul>
	</div>				

</div>
</div>
	</aside>
	
</div>
</body>
<script src="js/bootstrap.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="js/jquery.nivo.slider.pack.js"></script>
<script>
	$(window).load(function() {
		$('#slider').nivoSlider({
			effect: 'random',
			directionNavHide: false,
			pauseOnHover: true,
			captionOpacity: 1,
			prevText: '<',
			nextText: '>'
		});
	});
</script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="js/bootstrap-dropdown.js"></script>
<script type="text/javascript" src="js/dropdown.js"></script>
</html>
